﻿using System;
using System.Linq;
using Medora.DataContract;
using Medora.Model.Security;

namespace Medora.Services.Utils
{
    public class UsersService: IUserService
    {
        private readonly IUow _uow;

        public UsersService(IUow uow)
        {
            _uow = uow;
        }

        public UserProfile GetById(Guid id)
        {
            return _uow.Users.Get(o=>o.UserId==id).FirstOrDefault();
        }
}

    public interface IUserService
    {
        UserProfile GetById(Guid id);
    }
}